{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "c5bb17cb",
   "metadata": {},
   "source": [
    "## 本周学习内容\n",
    "\n",
    ">1.了解IDE\n",
    ">>1.认识了[jupyter notebook的IDE](http://jupyter.org/)作为python的IDE（集成开发环境）\n",
    ">>2.了解了jupyter的*优势*\n",
    ">>3.jupyter的打开**步骤**\n",
    ">>>1.打开cmd(win+R）\n",
    ">>>2.在指定的工作路径下（d:cd/【进入根路径】指定路径）输入jupyter notebook\n",
    "----------------------\n",
    ">2.了解[markdown](https://www.markdownguide.org/)语法\n",
    ">>1.[markdown cheat sheet](https://www.markdownguide.org/cheat-sheet/)查询所有总结的markdown的备忘录\n",
    ">>2.[markdown Basic syntax](https://www.markdownguide.org/basic-syntax/)查询所有总结的markdown的基本语法\n",
    ">>3.练习：请大家回去之后把markdown全部基础语法进行练习\n",
    ">>4.[week07]（）尝试跳转到本地路径"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c6c3274e",
   "metadata": {},
   "source": [
    ">3.python 练习模块\n",
    ">>2.datetime()模块\n",
    ">>*3.help()使用\n",
    "----------"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "257a44b1",
   "metadata": {},
   "source": [
    ">调用模块：import 模块名称"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "59640c7b",
   "metadata": {},
   "outputs": [],
   "source": [
    "import time\n",
    "错误示范\n",
    "import tima\n",
    " time.Tab键\n",
    "<<<time.localtime()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f812d6e1",
   "metadata": {},
   "source": [
    "* 体验后的笔记和思考: 如何查询模块的具体文档？如何查看模块中的方法的具体文件？\n",
    "* python time 模块链接\n",
    " > 1. 查看python [官方网站文档](https://www.python.org/doc/) ，找到[Global Module Index](https://docs.python.org/3/py-modindex.html) 找到[time](https://docs.python.org/3/library/time.html#module-time)\\n\",\n",
    " > 2. 第二种查询方法 help()\\n\",\n",
    " > 3. 练习：课本P10-P11模块初体验\"\n",
    "   "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "id": "03f7d119",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'win32'"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    ">>> import sys\n",
    ">>> sys.platform"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "f254a91e",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)]\n"
     ]
    }
   ],
   "source": [
    "print(sys.version)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "a09d4898",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'C:\\\\互动媒体制作'"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    ">>> import os\n",
    ">>> os.getcwd()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "c44fb43c",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "environ{'ALLUSERSPROFILE': 'C:\\\\ProgramData',\n",
       "        'APPDATA': 'C:\\\\Users\\\\86136\\\\AppData\\\\Roaming',\n",
       "        'COMMONPROGRAMFILES': 'C:\\\\Program Files\\\\Common Files',\n",
       "        'COMMONPROGRAMFILES(X86)': 'C:\\\\Program Files (x86)\\\\Common Files',\n",
       "        'COMMONPROGRAMW6432': 'C:\\\\Program Files\\\\Common Files',\n",
       "        'COMPUTERNAME': 'EVENCHAN',\n",
       "        'COMSPEC': 'C:\\\\Windows\\\\system32\\\\cmd.exe',\n",
       "        'DRIVERDATA': 'C:\\\\Windows\\\\System32\\\\Drivers\\\\DriverData',\n",
       "        'FPS_BROWSER_APP_PROFILE_STRING': 'Internet Explorer',\n",
       "        'FPS_BROWSER_USER_PROFILE_STRING': 'Default',\n",
       "        'HOMEDRIVE': 'C:',\n",
       "        'HOMEPATH': '\\\\Users\\\\86136',\n",
       "        'LOCALAPPDATA': 'C:\\\\Users\\\\86136\\\\AppData\\\\Local',\n",
       "        'LOGONSERVER': '\\\\\\\\EVENCHAN',\n",
       "        'NUMBER_OF_PROCESSORS': '8',\n",
       "        'ONEDRIVE': 'C:\\\\Users\\\\86136\\\\OneDrive',\n",
       "        'ONEDRIVECONSUMER': 'C:\\\\Users\\\\86136\\\\OneDrive',\n",
       "        'OS': 'Windows_NT',\n",
       "        'PATH': 'C:\\\\ProgramData\\\\Anaconda3;C:\\\\ProgramData\\\\Anaconda3\\\\Library\\\\mingw-w64\\\\bin;C:\\\\ProgramData\\\\Anaconda3\\\\Library\\\\usr\\\\bin;C:\\\\ProgramData\\\\Anaconda3\\\\Library\\\\bin;C:\\\\ProgramData\\\\Anaconda3\\\\Scripts;C:\\\\Windows\\\\system32;C:\\\\Windows;C:\\\\Windows\\\\System32\\\\Wbem;C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\;C:\\\\Windows\\\\System32\\\\OpenSSH\\\\;C:\\\\Program Files\\\\Intel\\\\WiFi\\\\bin\\\\;C:\\\\Program Files\\\\Common Files\\\\Intel\\\\WirelessCommon\\\\;C:\\\\Users\\\\86136\\\\anaconda3;C:\\\\Users\\\\86136\\\\anaconda3\\\\Library\\\\mingw-w64\\\\bin;C:\\\\Users\\\\86136\\\\anaconda3\\\\Library\\\\usr\\\\bin;C:\\\\Users\\\\86136\\\\anaconda3\\\\Library\\\\bin;C:\\\\Users\\\\86136\\\\anaconda3\\\\Scripts;C:\\\\Users\\\\86136\\\\AppData\\\\Local\\\\Microsoft\\\\WindowsApps',\n",
       "        'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC',\n",
       "        'PROCESSOR_ARCHITECTURE': 'AMD64',\n",
       "        'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 142 Stepping 11, GenuineIntel',\n",
       "        'PROCESSOR_LEVEL': '6',\n",
       "        'PROCESSOR_REVISION': '8e0b',\n",
       "        'PROGRAMDATA': 'C:\\\\ProgramData',\n",
       "        'PROGRAMFILES': 'C:\\\\Program Files',\n",
       "        'PROGRAMFILES(X86)': 'C:\\\\Program Files (x86)',\n",
       "        'PROGRAMW6432': 'C:\\\\Program Files',\n",
       "        'PROMPT': '$P$G',\n",
       "        'PSMODULEPATH': 'C:\\\\Program Files\\\\WindowsPowerShell\\\\Modules;C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\Modules',\n",
       "        'PUBLIC': 'C:\\\\Users\\\\Public',\n",
       "        'SESSIONNAME': 'Console',\n",
       "        'SYSTEMDRIVE': 'C:',\n",
       "        'SYSTEMROOT': 'C:\\\\Windows',\n",
       "        'TEMP': 'C:\\\\Users\\\\86136\\\\AppData\\\\Local\\\\Temp',\n",
       "        'TMP': 'C:\\\\Users\\\\86136\\\\AppData\\\\Local\\\\Temp',\n",
       "        'USERDOMAIN': 'EVENCHAN',\n",
       "        'USERDOMAIN_ROAMINGPROFILE': 'EVENCHAN',\n",
       "        'USERNAME': '86136',\n",
       "        'USERPROFILE': 'C:\\\\Users\\\\86136',\n",
       "        'WINDIR': 'C:\\\\Windows',\n",
       "        'JPY_INTERRUPT_EVENT': '1076',\n",
       "        'IPY_INTERRUPT_EVENT': '1076',\n",
       "        'JPY_PARENT_PID': '2368',\n",
       "        'TERM': 'xterm-color',\n",
       "        'CLICOLOR': '1',\n",
       "        'PAGER': 'cat',\n",
       "        'GIT_PAGER': 'cat',\n",
       "        'MPLBACKEND': 'module://ipykernel.pylab.backend_inline'}"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    ">>> os.environ"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "id": "2de9a708",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "datetime.date(2021, 10, 19)"
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    ">>> import datetime\n",
    ">>> datetime.date.today()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "fe4d1696",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "19"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    ">>> datetime.date.today().day"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 70,
   "id": "fdc75e5c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "10"
      ]
     },
     "execution_count": 70,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    ">>> datetime.date.today().month"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "6dbb77e2",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "19"
      ]
     },
     "execution_count": 36,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    ">>> datetime.date.today().day"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "id": "736a8792",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'2021-10-19'"
      ]
     },
     "execution_count": 40,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    ">>> datetime.date.isoformat(datetime.date.today())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "id": "9542cc52",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'16:44'"
      ]
     },
     "execution_count": 48,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    ">>> import time\n",
    ">>> time.strftime(\"%H:%M\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 71,
   "id": "ffb9f802",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'Tuesday PM'"
      ]
     },
     "execution_count": 71,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    ">>> time.strftime(\"%A %p\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "id": "c37ee54f",
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'This HTML fragment contains a &lt;script&gt;script&lt;/script&gt;. tag'"
      ]
     },
     "execution_count": 68,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    ">>> import html\n",
    ">>> html.escape (\"This HTML fragment contains a <script>script</script>. tag\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "id": "bbe6cb26",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "\"I ♥ Python's b&1t;standard library>.\""
      ]
     },
     "execution_count": 64,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    ">>> html.unescape(\"I &hearts; Python's b&1t;standard library&gt;.\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "2ee1a397",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "df5a98da",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
